from flask import Flask, request


app = Flask(__name__)

# 转换器：int float path,也可以自定义
@app.route("/home/<int:user_id>/<level_id>")
def index(user_id, level_id):
    r = request
    print(request)
    return f"欢迎第{user_id}号用户取得第{level_id}名"


if __name__ == '__main__':
    app.run(debug=True)